package com.zzj.hotel.core.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity(name="user")
public class User {
	@Id
	@Column(name="user_id")
	private String user_id;

	@Column(name="user_name",unique=true)
	private String user_name;

	@Column(name="user_pass")
	private String user_pass;
	
	@Column(name="user_sex")
	private String user_sex;
	
	@Column(name="user_tel")
	private String user_tel;
	
	@Column(name="user_mail")
	private String user_mail;
	
	@Column(name="user_age")
	private String user_age;
	
	@Column(name="user_regtime")
	private String user_regtime;

	public String getUser_id() {
		return user_id;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public String getUser_pass() {
		return user_pass;
	}
	public void setUser_pass(String user_pass) {
		this.user_pass = user_pass;
	}
	public String getUser_sex() {
		if(user_sex == null){
			return "";
		}
		return user_sex;
	}
	public void setUser_sex(String user_sex) {
		this.user_sex = user_sex;
	}
	public String getUser_tel() {
		if(user_tel == null){
			return "";
		}
		return user_tel;
	}
	public void setUser_tel(String user_tel) {
		this.user_tel = user_tel;
	}
	public String getUser_mail() {
		if(user_mail == null){
			return "";
		}
		return user_mail;
	}
	public void setUser_mail(String user_mail) {
		this.user_mail = user_mail;
	}
	public String getUser_age() {
		if(user_age == null){
			return "";
		}
		return user_age;
	}
	public void setUser_age(String user_age) {
		this.user_age = user_age;
	}
	public String getUser_regtime() {
		if(user_regtime == null){
			return "";
		}
		return user_regtime;
	}
	public void setUser_regtime(String user_regtime) {
		this.user_regtime = user_regtime;
	}
	public User() {
	}
	
	public User(String user_id, String user_name, String user_pass,
			String user_sex, String user_tel, String user_mail,
			String user_age, String user_regtime) {
		super();
		this.user_id = user_id;
		this.user_name = user_name;
		this.user_pass = user_pass;
		this.user_sex = user_sex;
		this.user_tel = user_tel;
		this.user_mail = user_mail;
		this.user_age = user_age;
		this.user_regtime = user_regtime;
	}

	public static final String USER_ID = "user_id";
	public static final String USER_NAME = "user_name";
	public static final String USER_PASS = "user_pass";
}
